package com.yudean.esb.mapper.mds;

import com.yudean.esb.domain.mds.MdsFinPerformanceData;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Mapper
@Transactional
public interface MdsFinPerformanceDataMapper {

    List<MdsFinPerformanceData> getFinPerformanceData(@Param("compCode") String compCode, @Param("periodName") String periodName, @Param("performanceCode") String performanceCode, @Param("viewName") String viewName);

    List<MdsFinPerformanceData> getFinPerformanceDataByPageSize(@Param("compCode") String compCode, @Param("periodName") String periodName, @Param("performanceCode") String performanceCode, @Param("viewName") String viewName, @Param(value = "rowStart") int rowStart, @Param(value = "rowEnd") int rowEnd);

    List<MdsFinPerformanceData> getHypFinPerformanceDataByPeriodName(@Param("periodName") String periodName);

    List<MdsFinPerformanceData> getHypFinPerformanceDataByPeriodNamePageSize(@Param("periodName") String periodName, @Param(value = "rowStart") int rowStart, @Param(value = "rowEnd") int rowEnd);

    int getAllHypFinPerformanceDataByPeriodNameCount(@Param("periodName") String periodName);


    List<MdsFinPerformanceData> getFinPerformanceDataByHYPCode(@Param("hypCode") String hypCode, @Param("periodName") String periodName, @Param("performanceCode") String performanceCode, @Param("viewName") String viewName);
}